#define _CRT_SECURE_NO_WARNINGS 1
//#include<stdio.h>
//#define my_offsetof(type,m) (size_t)(&((type*)0)->m)
//struct S
//{
//	int a;
//	char b;
//	double c;
//	double d;
//};
//int main() 
//{
//	struct S s;
//	printf("%d", my_offsetof(struct S, c));
//	return 0;
//}
#include<stdio.h>
#define SWAP(num) (num&(1<<31))? num<<1+1:num<<1
int main()
{
	int a = 9;
	printf("%d", SWAP(a));
	return 0;
}